
<!DOCTYPE HTML>
<html lang="zh-hans" >
    <head>
        <meta charset="UTF-8">
        <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
        <title>Docker 基础学习笔记 · 日常学习笔记</title>
        <meta http-equiv="X-UA-Compatible" content="IE=edge" />
        <meta name="description" content="">
        <meta name="generator" content="GitBook 3.2.3">
        
        
        
    
    <link rel="stylesheet" href="../gitbook/style.css">

    
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-expandable-chapters/expandable-chapters.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-pageview-count/plugin.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-code/plugin.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-back-to-top-button/plugin.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-splitter/splitter.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-search-pro/search.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-anchors/plugin.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-page-footer-ex/style/plugin.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-advanced-emoji/emoji-website.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-highlight/website.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-fontsettings/website.css">
                
            
        

    

    
        
    
        
    
        
    
        
    
        
    
        
    

        
    
    
    
    <meta name="HandheldFriendly" content="true"/>
    <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <link rel="apple-touch-icon-precomposed" sizes="152x152" href="../gitbook/images/apple-touch-icon-precomposed-152.png">
    <link rel="shortcut icon" href="../gitbook/images/favicon.ico" type="image/x-icon">

    
    <link rel="next" href="Docker小知识.html" />
    
    
    <link rel="prev" href="./" />
    

    <style>
    @media only screen and (max-width: 640px) {
        .book-header .hidden-mobile {
            display: none;
        }
    }
    </style>
    <script>
        window["gitbook-plugin-github-buttons"] = {"buttons":[{"user":"Xiechengqi","repo":"LearningNotes","type":"star","size":"small","count":true}]};
    </script>

    </head>
    <body>
        
<div class="book">
    <div class="book-summary">
        
            
<div id="book-search-input" role="search">
    <input type="text" placeholder="输入并搜索" />
</div>

            
                <nav role="navigation">
                


<ul class="summary">
    
    

    

    
        
        
    
        <li class="chapter " data-level="1.1" data-path="../">
            
                <a href="../">
            
                    
                    Introduction
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2" data-path="../网络学习资源整理/">
            
                <a href="../网络学习资源整理/">
            
                    
                    网络学习资源整理
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.2.1" data-path="../网络学习资源整理/技术学习.html">
            
                <a href="../网络学习资源整理/技术学习.html">
            
                    
                    技术学习
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.2" data-path="../网络学习资源整理/运维博客.html">
            
                <a href="../网络学习资源整理/运维博客.html">
            
                    
                    运维博客
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.3" data-path="../网络学习资源整理/工具.html">
            
                <a href="../网络学习资源整理/工具.html">
            
                    
                    工具
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.4" data-path="../网络学习资源整理/静态博客模板.html">
            
                <a href="../网络学习资源整理/静态博客模板.html">
            
                    
                    静态博客模板
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.5" data-path="../网络学习资源整理/静态网站pages服务.html">
            
                <a href="../网络学习资源整理/静态网站pages服务.html">
            
                    
                    静态网站pages服务
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.6" data-path="../网络学习资源整理/静态pages的CI和CD.html">
            
                <a href="../网络学习资源整理/静态pages的CI和CD.html">
            
                    
                    静态pages的CI和CD
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.7" data-path="../网络学习资源整理/Hugo学习.html">
            
                <a href="../网络学习资源整理/Hugo学习.html">
            
                    
                    Hugo学习
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.3" data-path="../心灵鸡汤/">
            
                <a href="../心灵鸡汤/">
            
                    
                    心灵鸡汤
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.3.1" data-path="../心灵鸡汤/心灵鸡汤.html">
            
                <a href="../心灵鸡汤/心灵鸡汤.html">
            
                    
                    语录
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.4" data-path="../Linux/">
            
                <a href="../Linux/">
            
                    
                    Linux
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.4.1" data-path="../Linux/Linux常用命令.html">
            
                <a href="../Linux/Linux常用命令.html">
            
                    
                    Linux常用命令
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.2" data-path="../Linux/Linux小知识.html">
            
                <a href="../Linux/Linux小知识.html">
            
                    
                    平时 linux 遇到的问题解决办法和扩展小知识
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.3" data-path="../Linux/Linux性能相关常用命令.html">
            
                <a href="../Linux/Linux性能相关常用命令.html">
            
                    
                    Linux性能相关常用命令
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.4" data-path="../Linux/Linux各种安装下载慢解决方法.html">
            
                <a href="../Linux/Linux各种安装下载慢解决方法.html">
            
                    
                    Linux各种安装下载慢解决方法
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.5" data-path="../Linux/APT-剖析详解.html">
            
                <a href="../Linux/APT-剖析详解.html">
            
                    
                    APT 原理剖析、详解
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.6" data-path="../Linux/Linux主机、虚拟机和docker网络配置.html">
            
                <a href="../Linux/Linux主机、虚拟机和docker网络配置.html">
            
                    
                    Linux 主机、虚拟机和docker网络配置
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.7" data-path="../Linux/Linux文件系统学习.html">
            
                <a href="../Linux/Linux文件系统学习.html">
            
                    
                    Linux文件系统学习
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.8" data-path="../Linux/Linux用户和用户组管理.html">
            
                <a href="../Linux/Linux用户和用户组管理.html">
            
                    
                    Linux用户和用户组管理
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.9" data-path="../Linux/Linux用户增删改等学习.html">
            
                <a href="../Linux/Linux用户增删改等学习.html">
            
                    
                    Linux用户增删改等学习.md
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.10" data-path="../Linux/Linux程序存放目录.html">
            
                <a href="../Linux/Linux程序存放目录.html">
            
                    
                    Linux程序存放目录.md
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.11" data-path="../Linux/Linux编译安装软件包详解.html">
            
                <a href="../Linux/Linux编译安装软件包详解.html">
            
                    
                    Linux C/C++ 软件包编译、安装原理详解
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.12" data-path="../Linux/SSH详解.html">
            
                <a href="../Linux/SSH详解.html">
            
                    
                    SSH 详解
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.13" data-path="../Linux/Tomcat和Ngnix和Apache.html">
            
                <a href="../Linux/Tomcat和Ngnix和Apache.html">
            
                    
                    Tomcat和Ngnix和Apache.md
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.14" data-path="../Linux/UbuntuSoftwareInstall.html">
            
                <a href="../Linux/UbuntuSoftwareInstall.html">
            
                    
                    Ubuntu 软件包安装
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.15" data-path="../Linux/YAML-配置文件语言.html">
            
                <a href="../Linux/YAML-配置文件语言.html">
            
                    
                    YAML 配置文件语言
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.16" data-path="../Linux/bin目录详解.html">
            
                <a href="../Linux/bin目录详解.html">
            
                    
                    bin目录详解.md
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.17" data-path="../Linux/ffmpeg详解.html">
            
                <a href="../Linux/ffmpeg详解.html">
            
                    
                    ffmpeg学习
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.18" data-path="../Linux/trans命令.html">
            
                <a href="../Linux/trans命令.html">
            
                    
                    trans命令
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.19" data-path="../Linux/yum和rpm.html">
            
                <a href="../Linux/yum和rpm.html">
            
                    
                    Yum 和 RPM
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.20" data-path="../Linux/从BashShell启动“窥探”Linux环境变量相关文件.html">
            
                <a href="../Linux/从BashShell启动“窥探”Linux环境变量相关文件.html">
            
                    
                    Linux环境变量详解
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.21" data-path="../Linux/新创建主机常用初始化配置.html">
            
                <a href="../Linux/新创建主机常用初始化配置.html">
            
                    
                    新建主机常用初始化配置
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.22" data-path="../Linux/正则表达式学习.html">
            
                <a href="../Linux/正则表达式学习.html">
            
                    
                    正则表达式
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.23" data-path="../Linux/通过Linux开机启动项展开学习.html">
            
                <a href="../Linux/通过Linux开机启动项展开学习.html">
            
                    
                    Linux开机启动项学习
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.24" data-path="../Linux/防火墙学习.html">
            
                <a href="../Linux/防火墙学习.html">
            
                    
                    防火墙学习笔记
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.5" data-path="../Python/">
            
                <a href="../Python/">
            
                    
                    Python
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.5.1" data-path="../Python/BeautifulSoup.md">
            
                <span>
            
                    
                    Python3 BeautifulSoup 学习记录
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.2" data-path="../Python/Django.html">
            
                <a href="../Python/Django.html">
            
                    
                    Python Django 学习笔记
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.3" data-path="../Python/IPython使用技巧.html">
            
                <a href="../Python/IPython使用技巧.html">
            
                    
                    IPython 使用技巧
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.4" data-path="../Python/Numpy.html">
            
                <a href="../Python/Numpy.html">
            
                    
                    Python Numpy 学习
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.5" data-path="../Python/Python小知识.html">
            
                <a href="../Python/Python小知识.html">
            
                    
                    Python 学习遇到的问题解决或扩展小知识
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.6" data-path="../Python/Python模块管理总结.html">
            
                <a href="../Python/Python模块管理总结.html">
            
                    
                    Python 模块管理总结
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.7" data-path="../Python/flask学习.md">
            
                <span>
            
                    
                    Flask 学习
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.8" data-path="../Python/matplotlib.html">
            
                <a href="../Python/matplotlib.html">
            
                    
                    matplotlib.md
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.9" data-path="../Python/re正则表达式.html">
            
                <a href="../Python/re正则表达式.html">
            
                    
                    re正则表达式.md
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.10" data-path="../Python/图形界面学习.html">
            
                <a href="../Python/图形界面学习.html">
            
                    
                    图形界面学习.md
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.11" data-path="../Python/常用图像库学习.html">
            
                <a href="../Python/常用图像库学习.html">
            
                    
                    Python3 常用图像库
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.12" data-path="../Python/进阶学习.html">
            
                <a href="../Python/进阶学习.html">
            
                    
                    Python3 进阶学习笔记
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.6" data-path="../Shell/">
            
                <a href="../Shell/">
            
                    
                    Shell
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.6.1" data-path="../Shell/shell小知识.html">
            
                <a href="../Shell/shell小知识.html">
            
                    
                    Shell小知识
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.2" data-path="../Shell/Shell奇淫技巧.html">
            
                <a href="../Shell/Shell奇淫技巧.html">
            
                    
                    Shell奇淫技巧
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.3" data-path="../Shell/Linux文本操作三大利器-grep、sed、awk.html">
            
                <a href="../Shell/Linux文本操作三大利器-grep、sed、awk.html">
            
                    
                    grep、sed、awk 详解
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.4" data-path="../Shell/Shell文本处理常用工具补遗.html">
            
                <a href="../Shell/Shell文本处理常用工具补遗.html">
            
                    
                    Shell文本处理常用工具补遗
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.5" data-path="../Shell/句子解析.html">
            
                <a href="../Shell/句子解析.html">
            
                    
                    句子解析
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.6" data-path="../Shell/识别是否是root用户.html">
            
                <a href="../Shell/识别是否是root用户.html">
            
                    
                    识别是否是root用户
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.7" data-path="../Shell/识别系统.html">
            
                <a href="../Shell/识别系统.html">
            
                    
                    识别系统
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.7" data-path="../Vim/">
            
                <a href="../Vim/">
            
                    
                    Vim
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.7.1" data-path="../Vim/Vim小知识.html">
            
                <a href="../Vim/Vim小知识.html">
            
                    
                    Vim小知识
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.7.2" data-path="../Vim/Vim编辑器再学习.html">
            
                <a href="../Vim/Vim编辑器再学习.html">
            
                    
                    Vim编辑器再学习
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.7.3" data-path="../Vim/VimScript学习笔记.html">
            
                <a href="../Vim/VimScript学习笔记.html">
            
                    
                    VimScript 学习笔记
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.7.4" data-path="../Vim/YouCompleteMe安装.html">
            
                <a href="../Vim/YouCompleteMe安装.html">
            
                    
                    YouCompleteMe安装
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.7.5" data-path="../Vim/vimrc示例1.html">
            
                <a href="../Vim/vimrc示例1.html">
            
                    
                    vimrc示例
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.7.6" data-path="../Vim/vimrc备份.html">
            
                <a href="../Vim/vimrc备份.html">
            
                    
                    vimrc备份
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.7.7" data-path="../Vim/Tmux快捷键.html">
            
                <a href="../Vim/Tmux快捷键.html">
            
                    
                    Tmux快捷键
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.8" data-path="../Ansible/">
            
                <a href="../Ansible/">
            
                    
                    Ansible
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.8.1" data-path="../Ansible/术语表.html">
            
                <a href="../Ansible/术语表.html">
            
                    
                    术语表
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.8.2" data-path="../Ansible/Ansible必知单词.html">
            
                <a href="../Ansible/Ansible必知单词.html">
            
                    
                    Ansible 常用单词
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.8.3" data-path="../Ansible/Ansible学习.html">
            
                <a href="../Ansible/Ansible学习.html">
            
                    
                    Ansible 学习笔记
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.8.4" data-path="../Ansible/Ansible常用模板.html">
            
                <a href="../Ansible/Ansible常用模板.html">
            
                    
                    Ansible常用模板.md
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.9" data-path="./">
            
                <a href="./">
            
                    
                    Docker
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter active" data-level="1.9.1" data-path="Docker基础学习.html">
            
                <a href="Docker基础学习.html">
            
                    
                    Docker 基础学习笔记
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.9.2" data-path="Docker小知识.html">
            
                <a href="Docker小知识.html">
            
                    
                    Docker 小知识
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.9.3" data-path="Docker必知单词.html">
            
                <a href="Docker必知单词.html">
            
                    
                    Docker 学习中的单词
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.10" data-path="../Git/">
            
                <a href="../Git/">
            
                    
                    Git
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.10.1" data-path="../Git/git学习.html">
            
                <a href="../Git/git学习.html">
            
                    
                    Git 学习笔记
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.10.2" data-path="../Git/git小技巧.html">
            
                <a href="../Git/git小技巧.html">
            
                    
                    Git 小技巧
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.11" data-path="../Zabbix/">
            
                <a href="../Zabbix/">
            
                    
                    Zabbix
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.11.1" data-path="../Zabbix/Docker安装配置Zabbix.html">
            
                <a href="../Zabbix/Docker安装配置Zabbix.html">
            
                    
                    Docker 安装配置 Zabbix
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.11.2" data-path="../Zabbix/术语单词.html">
            
                <a href="../Zabbix/术语单词.html">
            
                    
                    Zabbix 中常用单词
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.11.3" data-path="../Zabbix/重置密码.html">
            
                <a href="../Zabbix/重置密码.html">
            
                    
                    重置 Zabbix 账户密码
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.12" data-path="../KVM/">
            
                <a href="../KVM/">
            
                    
                    KVM
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.12.1" data-path="../KVM/安装配置.html">
            
                <a href="../KVM/安装配置.html">
            
                    
                    常用命令
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.12.2" data-path="../KVM/虚拟机网络配置.html">
            
                <a href="../KVM/虚拟机网络配置.html">
            
                    
                    Bridged 桥接模式
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.13" data-path="../Mysql/">
            
                <a href="../Mysql/">
            
                    
                    Mysql
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.13.1" data-path="../Mysql/Ubuntu安装Navicat.html">
            
                <a href="../Mysql/Ubuntu安装Navicat.html">
            
                    
                    Ubuntu 安装及配置 Navicat
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.13.2" data-path="../Mysql/忘记root密码.html">
            
                <a href="../Mysql/忘记root密码.html">
            
                    
                    如何替换已忘记的 root 密码
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.14" data-path="../Nginx/">
            
                <a href="../Nginx/">
            
                    
                    Nginx
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.14.1" data-path="../Nginx/Nginx学习笔记.html">
            
                <a href="../Nginx/Nginx学习笔记.html">
            
                    
                    Nginx 学习
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.15" data-path="../NoClass/">
            
                <a href="../NoClass/">
            
                    
                    闲知
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.15.1" data-path="../NoClass/容易读错的IT术语.html">
            
                <a href="../NoClass/容易读错的IT术语.html">
            
                    
                    容易读错的IT术语
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.15.2" data-path="../NoClass/Linux-electron-tutorial.html">
            
                <a href="../NoClass/Linux-electron-tutorial.html">
            
                    
                    Linux electron 学习记录
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.15.3" data-path="../NoClass/MarkdownSkills.html">
            
                <a href="../NoClass/MarkdownSkills.html">
            
                    
                    记录 Markdown 的各种小技巧
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.15.4" data-path="../NoClass/RaspeberryPi.html">
            
                <a href="../NoClass/RaspeberryPi.html">
            
                    
                    使用树莓派 3B 遇到的问题
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.15.5" data-path="../NoClass/华为国产手机芯片SoC.html">
            
                <a href="../NoClass/华为国产手机芯片SoC.html">
            
                    
                    华为国产手机芯片SoC
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.15.6" data-path="../NoClass/图片格式详解及其对比.html">
            
                <a href="../NoClass/图片格式详解及其对比.html">
            
                    
                    图片格式详解及其对比
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.15.7" data-path="../NoClass/计算机小知识.html">
            
                <a href="../NoClass/计算机小知识.html">
            
                    
                    记录一些计算机的小知识
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.15.8" data-path="../NoClass/诗词.html">
            
                <a href="../NoClass/诗词.html">
            
                    
                    诗词
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.16" data-path="../OS/">
            
                <a href="../OS/">
            
                    
                    OS
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.16.1" data-path="../OS/学习笔记.html">
            
                <a href="../OS/学习笔记.html">
            
                    
                    操作系统学习笔记
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.16.2" data-path="../OS/术语单词.html">
            
                <a href="../OS/术语单词.html">
            
                    
                    OS 专业词语解析
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.16.3" data-path="../OS/SoCCPU.html">
            
                <a href="../OS/SoCCPU.html">
            
                    
                    SoC 与 CPU
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.17" data-path="../Tomcat/">
            
                <a href="../Tomcat/">
            
                    
                    Tomcat
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.17.1" data-path="../Tomcat/Tomcat 学习.html">
            
                <a href="../Tomcat/Tomcat 学习.html">
            
                    
                    Tomcat 学习
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.17.2" data-path="../Tomcat/Tomcat学习.html">
            
                <a href="../Tomcat/Tomcat学习.html">
            
                    
                    Tomcat 学习
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.18" data-path="../VPS/">
            
                <a href="../VPS/">
            
                    
                    VPS
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.18.1" data-path="../VPS/AWS_lightsail.html">
            
                <a href="../VPS/AWS_lightsail.html">
            
                    
                    AWS LightSail
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.18.2" data-path="../VPS/GCP_VM实例创建和基本配置.html">
            
                <a href="../VPS/GCP_VM实例创建和基本配置.html">
            
                    
                    GCP VM
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.18.3" data-path="../VPS/ECS和VPS等等.html">
            
                <a href="../VPS/ECS和VPS等等.html">
            
                    
                    ECS和VPS
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.19" data-path="../ComputerComposition/">
            
                <a href="../ComputerComposition/">
            
                    
                    ComputerComposition
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.19.1" data-path="../ComputerComposition/学习笔记.html">
            
                <a href="../ComputerComposition/学习笔记.html">
            
                    
                    计算机组成原理学习笔记
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.20" data-path="../ComputerNetwork/">
            
                <a href="../ComputerNetwork/">
            
                    
                    ComputerNetwork
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.20.1" data-path="../ComputerNetwork/ProWords.html">
            
                <a href="../ComputerNetwork/ProWords.html">
            
                    
                    术语单词
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.20.2" data-path="../ComputerNetwork/学习笔记.html">
            
                <a href="../ComputerNetwork/学习笔记.html">
            
                    
                    计算机网络学习笔记
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.20.3" data-path="../ComputerNetwork/小知识.html">
            
                <a href="../ComputerNetwork/小知识.html">
            
                    
                    学习计算机网络中的小知识
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.20.4" data-path="../NoClass/浏览器架构简析.md">
            
                <span>
            
                    
                    浏览器架构简析
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.21" data-path="../毕业论文/">
            
                <a href="../毕业论文/">
            
                    
                    毕业论文
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.21.1" data-path="../毕业论文/开题报告.html">
            
                <a href="../毕业论文/开题报告.html">
            
                    
                    开题报告
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    

    

    <li class="divider"></li>

    <li>
        <a href="https://www.gitbook.com" target="blank" class="gitbook-link">
            本书使用 GitBook 发布
        </a>
    </li>
</ul>


                </nav>
            
        
    </div>

    <div class="book-body">
        
            <div class="body-inner">
                
                    

<div class="book-header" role="navigation">
    

    <!-- Title -->
    <h1>
        <i class="fa fa-circle-o-notch fa-spin"></i>
        <a href=".." >Docker 基础学习笔记</a>
    </h1>
</div>




                    <div class="page-wrapper" tabindex="-1" role="main">
                        <div class="page-inner">
                            
<div id="book-search-results">
    <div class="search-noresults">
    
                                <section class="normal markdown-section">
                                
                                <h1 id="docker-&#x57FA;&#x7840;&#x5B66;&#x4E60;&#x7B14;&#x8BB0;"><a name="docker-&#x57FA;&#x7840;&#x5B66;&#x4E60;&#x7B14;&#x8BB0;" class="plugin-anchor" href="#docker-&#x57FA;&#x7840;&#x5B66;&#x4E60;&#x7B14;&#x8BB0;"><i class="fa fa-link" aria-hidden="true"></i></a>Docker &#x57FA;&#x7840;&#x5B66;&#x4E60;&#x7B14;&#x8BB0;</h1>
<h2 id="&#x53C2;&#x8003;--&#x6269;&#x5C55;"><a name="&#x53C2;&#x8003;--&#x6269;&#x5C55;" class="plugin-anchor" href="#&#x53C2;&#x8003;--&#x6269;&#x5C55;"><i class="fa fa-link" aria-hidden="true"></i></a>&#x53C2;&#x8003; &amp;&amp; &#x6269;&#x5C55;</h2>
<blockquote>
<ul>
<li><a href="https://www.hi-linux.com/posts/55545.html" target="_blank">Docker &#x6700;&#x4F73;&#x5B9E;&#x8DF5;&#x4E4B;&#x591A;&#x9636;&#x6BB5;&#x6784;&#x5EFA;</a></li>
<li><a href="https://www.hi-linux.com/posts/57498.html" target="_blank">&#x5982;&#x4F55; 10 &#x6B65; Docker &#x5316;&#x4E00;&#x4E2A;&#x5E94;&#x7528;</a></li>
<li><a href="http://dockone.io/article/783" target="_blank">10&#x5F20;&#x56FE;&#x5E26;&#x4F60;&#x6DF1;&#x5165;&#x7406;&#x89E3;Docker&#x5BB9;&#x5668;&#x548C;&#x955C;&#x50CF;</a></li>
<li><a href="http://dockone.io/article/9551" target="_blank">Dockerfile &#x6700;&#x4F73;&#x5B9E;&#x8DF5;&#x53CA;&#x793A;&#x4F8B;</a></li>
<li><a href="http://dockone.io/article/9550" target="_blank">Docker&#x5BB9;&#x5668;&#x5B89;&#x5168;&#x6027;&#x5206;&#x6790;</a></li>
</ul>
</blockquote>
<h2 id="&#x76EE;&#x5F55;"><a name="&#x76EE;&#x5F55;" class="plugin-anchor" href="#&#x76EE;&#x5F55;"><i class="fa fa-link" aria-hidden="true"></i></a>&#x76EE;&#x5F55;</h2>
<ul>
<li><strong><a href="#docker-&#x5E38;&#x7528;&#x547D;&#x4EE4;-top">Docker &#x5E38;&#x7528;&#x547D;&#x4EE4;</a></strong></li>
<li><strong><a href="#docker-&#x57FA;&#x7840;&#x67B6;&#x6784;-top">Docker &#x57FA;&#x7840;&#x67B6;&#x6784;</a></strong></li>
<li><strong><a href="#docker-&#x539F;&#x7406;&#x7B80;&#x8FF0;-top">Docker &#x539F;&#x7406;&#x7B80;&#x8FF0;</a></strong></li>
<li><strong><a href="#dockerfile---&#x6784;&#x5EFA;&#x81EA;&#x5B9A;&#x4E49;&#x955C;&#x50CF;-top">Dockerfile - &#x6784;&#x5EFA;&#x81EA;&#x5B9A;&#x4E49;&#x955C;&#x50CF;</a></strong></li>
<li><strong><a href="#docker-&#x591A;&#x9636;&#x6BB5;&#x6784;&#x5EFA;-top">Docker &#x591A;&#x9636;&#x6BB5;&#x6784;&#x5EFA;</a></strong></li>
<li><strong><a href="#docker-compose---&#x7F16;&#x6392;&#x64CD;&#x63A7;&#x5BB9;&#x5668;-top">Docker Compose - &#x7F16;&#x6392;&#x64CD;&#x63A7;&#x5BB9;&#x5668;</a></strong></li>
<li><strong><a href="#docker-machine---&#x521B;&#x5EFA;&#x7BA1;&#x7406;&#x5BB9;&#x5668;&#x5BBF;&#x4E3B;&#x673A;-top">Docker Machine - &#x521B;&#x5EFA;&#x7BA1;&#x7406;&#x5BB9;&#x5668;&#x5BBF;&#x4E3B;&#x673A;</a></strong></li>
<li><strong><a href="#docker-swarm-top">Docker Swarm</a></strong></li>
</ul>
<h2 id="docker-&#x5E38;&#x7528;&#x547D;&#x4EE4;-top"><a name="docker-&#x5E38;&#x7528;&#x547D;&#x4EE4;-top" class="plugin-anchor" href="#docker-&#x5E38;&#x7528;&#x547D;&#x4EE4;-top"><i class="fa fa-link" aria-hidden="true"></i></a>Docker &#x5E38;&#x7528;&#x547D;&#x4EE4; <a href="#&#x76EE;&#x5F55;">[Top]</a></h2>
<p><strong><code>&#x547D;&#x4EE4;&#x624B;&#x518C;&#x67E5;&#x770B;</code></strong></p>
<ul>
<li><strong><code>docker</code></strong> | <strong><code>man docker</code></strong></li>
<li><strong><code>man docker &lt;command&gt;</code></strong>  | <strong><code>docker &lt;command&gt; -h</code></strong> </li>
<li><strong><code>docker-machine</code></strong> </li>
<li><strong><code>docker-machine &lt;command&gt; --help</code></strong></li>
</ul>
<p><strong><code>docker</code></strong></p>
<ul>
<li><strong><code>docker [options] COMMAND</code></strong></li>
<li><strong><code>docker version</code></strong> - &#x663E;&#x793A; docker &#x7248;&#x672C;&#x4FE1;&#x606F;</li>
<li><strong><code>docker search &#x5173;&#x952E;&#x5B57;</code></strong> - &#x9ED8;&#x8BA4;&#x4ECE; docker hub &#x641C;&#x7D22;&#x6307;&#x5B9A;&#x955C;&#x50CF;</li>
<li><strong><code>docker pull &#x955C;&#x50CF;&#x540D;:tag</code></strong> - &#x62C9;&#x53D6;&#x955C;&#x50CF;</li>
<li><strong><code>docker images</code></strong> - &#x5217;&#x51FA;&#x5DF2;&#x5B89;&#x88C5;&#x7684;&#x955C;&#x50CF;</li>
<li><strong><code>docker rmi [i-id]</code></strong> - &#x5220;&#x9664;&#x6307;&#x5B9A;&#x955C;&#x50CF;</li>
<li><strong><code>docker rm [c-id]</code></strong> - &#x5220;&#x9664;&#x6307;&#x5B9A;&#x5BB9;&#x5668;</li>
<li><strong><code>docker ps</code></strong> -  &#x67E5;&#x770B;&#x8FD0;&#x884C;&#x4E2D;&#x7684;&#x5BB9;&#x5668; <code>-a</code> &#x67E5;&#x770B;&#x6240;&#x6709;&#x5BB9;&#x5668;</li>
<li><strong><code>docker start|stop|restart [c-id]|[c-name]</code></strong> - &#x901A;&#x8FC7;&#x5BB9;&#x5668; id &#x6216;&#x5BB9;&#x5668;&#x540D;&#x8FD0;&#x884C; / &#x5173;&#x95ED;&#x5BB9;&#x5668;</li>
<li><strong><code>docker run</code></strong> - &#x5728;&#x9694;&#x79BB;&#x5BB9;&#x5668;&#x4E2D;&#x8FD0;&#x884C;&#x547D;&#x4EE4;</li>
<li><strong><code>docker run --name [c-name] -d -p 3306:3306 mysql</code></strong>  - docker &#x542F;&#x52A8;&#x5BB9;&#x5668;<ul>
<li><code>--name</code> - &#x81EA;&#x5B9A;&#x4E49;&#x5BB9;&#x5668;&#x540D;</li>
<li><code>-p</code> - &#x7AEF;&#x53E3;&#x6620;&#x5C04;&#xFF0C;<code>-p &#x5BBF;&#x4E3B;&#x673A;&#x7AEF;&#x53E3;:&#x5BB9;&#x5668;&#x7AEF;&#x53E3;</code></li>
<li><code>-d</code> - &#x5B88;&#x62A4;&#x8FDB;&#x7A0B;</li>
</ul>
</li>
<li><strong><code>docker run volume</code></strong> - &#x6570;&#x636E;&#x5377;&#x3001;&#x6570;&#x636E;&#x5377;&#x5BB9;&#x5668;</li>
<li><strong><code>docker run -v|--volume[=[[HOST-DIR:]CONTAINER-DIR[:OPTIONS]]] ...</code></strong> - &#x6DFB;&#x52A0;&#x4E00;&#x4E2A;&#x6570;&#x636E;&#x5377;</li>
<li><strong><code>docker rm -v</code></strong> - &#x5220;&#x9664;&#x5BB9;&#x5668;&#x548C;&#x5BB9;&#x5668;&#x7ED1;&#x5B9A;&#x7684;&#x6570;&#x636E;&#x5377;</li>
<li><strong><code>docker run --rm</code></strong> - &#x5728;&#x5173;&#x95ED;&#x5BB9;&#x5668;&#x540E;&#x4E5F;&#x4F1A;&#x81EA;&#x52A8;&#x5220;&#x9664;&#x5BB9;&#x5668;&#x548C;&#x5BB9;&#x5668;&#x7ED1;&#x5B9A;&#x7684;&#x6570;&#x636E;&#x5377;</li>
<li><strong><code>docker run -it -v /dbdata --name dbdata ubuntu</code></strong> - &#x521B;&#x5EFA;&#x4E00;&#x4E2A;&#x6570;&#x636E;&#x5377;&#x5BB9;&#x5668; dbdata &#xFF0C;&#x5E76;&#x5728;&#x5176;&#x4E2D;&#x521B;&#x5EFA;&#x4E00;&#x4E2A;&#x6570;&#x636E;&#x5377;&#x6302;&#x8F7D;&#x5230; /dbdata</li>
<li><strong><code>docker run -it --volumes-from dbdata --name db1 ubuntu</code></strong> - &#x521B;&#x5EFA; db1 &#x5BB9;&#x5668;&#xFF0C;&#x5E76;&#x4ECE; dbdata &#x5BB9;&#x5668;&#x6302;&#x8F7D;&#x6570;&#x636E;&#x5377;</li>
<li><strong><code>docker logs container-name/[c-id]</code></strong> - &#x67E5;&#x770B;&#x5BB9;&#x5668;&#x65E5;&#x5FD7;</li>
<li><strong><code>Ctrl+P+Q</code></strong> - &#x9000;&#x51FA;&#x5BB9;&#x5668;&#x4EA4;&#x4E92;&#x5F0F;&#x754C;&#x9762;&#xFF0C;&#x4F46;&#x4E0D;&#x5173;&#x95ED;&#x5BB9;&#x5668;</li>
<li><strong><code>docker attach</code></strong> - &#x5C06;&#x672C;&#x5730;&#x8F93;&#x5165;&#x3001;&#x8F93;&#x51FA;&#x3001;&#x9519;&#x8BEF;&#x6D41;&#x9644;&#x52A0;&#x5230;&#x6B63;&#x5728;&#x8FD0;&#x884C;&#x7684;&#x5BB9;&#x5668;</li>
<li><strong><code>docker commit</code></strong>&#x2014;&#x4ECE;&#x5F53;&#x524D;&#x66F4;&#x6539;&#x7684;&#x5BB9;&#x5668;&#x72B6;&#x6001;&#x521B;&#x5EFA;&#x65B0;&#x955C;&#x50CF;</li>
<li><strong><code>docker exec</code></strong>&#x2014;&#x5728;&#x6D3B;&#x52A8;&#x6216;&#x6B63;&#x5728;&#x8FD0;&#x884C;&#x7684;&#x5BB9;&#x5668;&#x4E2D;&#x8FD0;&#x884C;&#x547D;&#x4EE4;<ul>
<li><code>docker exec -it container command</code></li>
</ul>
</li>
<li><strong><code>docker history [i-id]</code></strong> - &#x663E;&#x793A;&#x955C;&#x50CF;&#x5386;&#x53F2;&#x8BB0;&#x5F55;</li>
<li><strong><code>docker info</code></strong> - &#x663E;&#x793A;&#x7CFB;&#x7EDF;&#x8303;&#x56F4;&#x4FE1;&#x606F;</li>
<li><strong><code>docker inspect [img|con]</code></strong> - &#x67E5;&#x627E; docker &#x6307;&#x5B9A;&#x5BB9;&#x5668;&#x548C;&#x955C;&#x50CF;&#x7684;&#x7CFB;&#x7EDF;&#x7EA7;&#x4FE1;&#x606F;</li>
<li><strong><code>docker login --username=xxx --email=xxx</code></strong> - &#x767B;&#x5F55;&#x5230;&#x672C;&#x5730;&#x6CE8;&#x518C;&#x8868;&#x6216; Docker Hub</li>
<li><p><strong><code>docker pull</code></strong> - &#x4ECE;&#x672C;&#x5730;&#x6CE8;&#x518C;&#x8868;&#x6216; Docker Hub &#x4E2D;&#x63D0;&#x53D6;&#x955C;&#x50CF;&#x6216;&#x5B58;&#x50A8;&#x5E93;</p>
</li>
<li><p><strong><code>docker inspect --format=&quot;{\{ \.Volumes }}&quot; [container]</code></strong> - &#x67E5;&#x770B;&#x5BBF;&#x4E3B;&#x673A;&#x4E0A;&#x5BF9;&#x5E94;&#x5BB9;&#x5668;&#x6570;&#x636E;&#x5377;&#x4F4D;&#x7F6E;</p>
</li>
</ul>
<p><strong><code>docker network</code></strong> - &#x7BA1;&#x7406;&#x7F51;&#x7EDC;</p>
<ul>
<li><strong><code>docker network ls</code></strong></li>
<li><strong><code>docker network connect</code></strong></li>
<li><strong><code>docker network create</code></strong></li>
<li>docker network disconnect</li>
<li>docker network inspect</li>
<li>docker network prune</li>
<li>docker network rm</li>
</ul>
<h2 id="docker-&#x57FA;&#x7840;&#x67B6;&#x6784;-top"><a name="docker-&#x57FA;&#x7840;&#x67B6;&#x6784;-top" class="plugin-anchor" href="#docker-&#x57FA;&#x7840;&#x67B6;&#x6784;-top"><i class="fa fa-link" aria-hidden="true"></i></a>Docker &#x57FA;&#x7840;&#x67B6;&#x6784; <a href="#&#x76EE;&#x5F55;">[Top]</a></h2>
<ul>
<li><p>&#x5E38;&#x8BF4;&#x7684; Docker &#x53C8;&#x79F0;&#x4E3A; Docker Engine</p>
</li>
<li><p>C/S &#x67B6;&#x6784; - &#x5BA2;&#x6237;&#x7AEF;&#x3001;&#x670D;&#x52A1;&#x5668;&#x4E24;&#x5927;&#x7EC4;&#x4EF6;</p>
</li>
<li>&#x5BA2;&#x6237;&#x7AEF;&#x53EF;&#x4EE5;&#x901A;&#x8FC7; <strong>socket</strong> &#x6216; <strong>RESTful API</strong> &#x4E0E;&#x670D;&#x52A1;&#x5668;&#x8FDB;&#x884C;&#x901A;&#x4FE1;</li>
<li><strong><code>Docker Engine</code></strong> = <strong><code>Docker &#x5B88;&#x62A4;&#x8FDB;&#x7A0B;</code></strong> + <strong><code>REST API &#xFF08;&#x6307;&#x5B9A;&#x4E0E;&#x5B88;&#x62A4;&#x8FDB;&#x7A0B;&#x4EA4;&#x4E92;&#x7684;&#x63A5;&#x53E3;&#xFF09;</code></strong> + <strong><code>&#x547D;&#x4EE4;&#x884C;&#x63A5;&#x53E3;&#xFF08;CLI&#xFF09;&#xFF08;&#x4E0E;&#x5B88;&#x62A4;&#x8FDB;&#x7A0B;&#x901A;&#x4FE1;&#xFF0C;&#x901A;&#x8FC7;&#x5C01;&#x88C5; REST API&#xFF09;</code></strong></li>
</ul>
<div align="center">
    <img src="images/DockerEngine.png"><br>
</div>

<h3 id="&#x670D;&#x52A1;&#x7AEF;"><a name="&#x670D;&#x52A1;&#x7AEF;" class="plugin-anchor" href="#&#x670D;&#x52A1;&#x7AEF;"><i class="fa fa-link" aria-hidden="true"></i></a>&#x670D;&#x52A1;&#x7AEF;</h3>
<h4 id="&#x56DB;&#x5927;&#x7EC4;&#x4EF6;"><a name="&#x56DB;&#x5927;&#x7EC4;&#x4EF6;" class="plugin-anchor" href="#&#x56DB;&#x5927;&#x7EC4;&#x4EF6;"><i class="fa fa-link" aria-hidden="true"></i></a>&#x56DB;&#x5927;&#x7EC4;&#x4EF6;</h4>
<p>1&#x3001;<strong><code>dockerd</code></strong></p>
<pre><code class="lang-bash">$ ps -ef | grep dockerd
root      3769     1  0 Dec02 ?        00:01:08 /usr/bin/dockerd -H fd:// --containerd=/run/containerd/containerd.sock
</code></pre>
<p>2&#x3001;<strong><code>docker-proxy</code></strong></p>
<p>dockerd &#x5B50;&#x8FDB;&#x7A0B;&#xFF0C;&#x5F53;&#x5BB9;&#x5668;&#x542F;&#x52A8;&#x5E76;&#x4F7F;&#x7528;&#x7AEF;&#x53E3;&#x6620;&#x5C04;&#x65F6;&#x624D;&#x4F1A;&#x6267;&#x884C;&#xFF0C;&#x8D1F;&#x8D23;&#x914D;&#x7F6E;&#x5BB9;&#x5668;&#x7684;&#x7AEF;&#x53E3;&#x6620;&#x5C04;&#x89C4;&#x5219;</p>
<pre><code class="lang-bash">$ ps aux | grep docker-proxy
root     24923  0.0  0.0 700716  4656 ?        Sl   13:19   0:00 /usr/bin/docker-proxy -proto tcp -host-ip 0.0.0.0 -host-port 8011 -container-ip 172.17.0.2 -container-port 80
root     24937  0.0  0.0 626728  3824 ?        Sl   13:19   0:00 /usr/bin/docker-proxy -proto tcp -host-ip 0.0.0.0 -host-port 2222 -container-ip 172.17.0.2 -container-port 2222
</code></pre>
<p>3&#x3001;<strong><code>containerd</code></strong></p>
<p>dockerd &#x5B50;&#x8FDB;&#x7A0B;</p>
<p>4&#x3001;<strong><code>containerd-shim</code></strong></p>
<p>containerd &#x5B50;&#x8FDB;&#x7A0B;</p>
<h3 id="&#x5BA2;&#x6237;&#x7AEF;"><a name="&#x5BA2;&#x6237;&#x7AEF;" class="plugin-anchor" href="#&#x5BA2;&#x6237;&#x7AEF;"><i class="fa fa-link" aria-hidden="true"></i></a>&#x5BA2;&#x6237;&#x7AEF;</h3>
<h2 id="docker-&#x539F;&#x7406;&#x7B80;&#x8FF0;-top"><a name="docker-&#x539F;&#x7406;&#x7B80;&#x8FF0;-top" class="plugin-anchor" href="#docker-&#x539F;&#x7406;&#x7B80;&#x8FF0;-top"><i class="fa fa-link" aria-hidden="true"></i></a>Docker &#x539F;&#x7406;&#x7B80;&#x8FF0; <a href="#&#x76EE;&#x5F55;">[Top]</a></h2>
<h3 id="&#x547D;&#x540D;&#x7A7A;&#x95F4;---namespace"><a name="&#x547D;&#x540D;&#x7A7A;&#x95F4;---namespace" class="plugin-anchor" href="#&#x547D;&#x540D;&#x7A7A;&#x95F4;---namespace"><i class="fa fa-link" aria-hidden="true"></i></a>&#x547D;&#x540D;&#x7A7A;&#x95F4; - namespace</h3>
<ul>
<li>&#x64CD;&#x4F5C;&#x7CFB;&#x7EDF;&#x4E2D;&#xFF0C;&#x8FDB;&#x7A0B;&#x95F4;&#x5171;&#x4EAB;&#x7684;&#x8D44;&#x6E90;&#x6709;&#x5185;&#x6838;&#x3001;&#x6587;&#x4EF6;&#x7CFB;&#x7EDF;&#x3001;&#x7F51;&#x7EDC;&#x3001;&#x8FDB;&#x7A0B;&#x53F7; ( Process ID, PID )&#x3001;&#x7528;&#x6237;&#x53F7; ( User ID&#xFF0C;UID )&#x3001;&#x8FDB;&#x7A0B;&#x95F4;&#x901A;&#x4FE1; ( InterProcess Communication&#xFF0C;IPC )&#x7B49;&#x3002;Linux &#x547D;&#x540D;&#x7A7A;&#x95F4;&#x5C31;&#x662F;&#x4E3A;&#x4E86;&#x5B9E;&#x73B0;&#x4EE5;&#x4E0A;&#x7684;&#x76F8;&#x4E92;&#x9694;&#x79BB;&#xFF0C;&#x4FDD;&#x8BC1;&#x4E86;&#x5BB9;&#x5668;&#x4E4B;&#x95F4;&#x5F7C;&#x6B64;&#x4E92;&#x8865;&#x5F71;&#x54CD;</li>
</ul>
<p>1&#x3001;<strong><code>&#x8FDB;&#x7A0B;&#x547D;&#x540D;&#x7A7A;&#x95F4;</code></strong></p>
<p>2&#x3001;<strong><code>IPC &#x547D;&#x540D;&#x7A7A;&#x95F4;</code></strong></p>
<ul>
<li>IPC - Interprocess Communication - &#x8FDB;&#x7A0B;&#x95F4;&#x4EA4;&#x4E92;</li>
<li>&#x5BB9;&#x5668;&#x4E2D;&#x7684;&#x8FDB;&#x7A0B;&#x4EA4;&#x4E92;&#x8FD8;&#x662F;&#x91C7;&#x7528; Linux &#x5E38;&#x89C1; IPC&#xFF0C;&#x5305;&#x62EC;&#x4FE1;&#x53F7;&#x91CF;&#x3001;&#x6D88;&#x606F;&#x961F;&#x5217;&#x3001;&#x5171;&#x4EAB;&#x5185;&#x5B58;&#x7B49;&#x65B9;&#x5F0F;</li>
</ul>
<p>3&#x3001;<strong><code>&#x7F51;&#x7EDC;&#x547D;&#x540D;&#x7A7A;&#x95F4;</code></strong></p>
<p>4&#x3001;<strong><code>&#x6302;&#x8F7D;&#x547D;&#x540D;&#x7A7A;&#x95F4;</code></strong></p>
<p>5&#x3001;<strong><code>UTS &#x547D;&#x540D;&#x7A7A;&#x95F4;</code></strong></p>
<ul>
<li>UTS - UNIX Time-sharing System</li>
</ul>
<p>6&#x3001;<strong><code>&#x7528;&#x6237;&#x547D;&#x540D;&#x7A7A;&#x95F4;</code></strong></p>
<h3 id="&#x63A7;&#x5236;&#x7EC4;---control-groups---cgroups"><a name="&#x63A7;&#x5236;&#x7EC4;---control-groups---cgroups" class="plugin-anchor" href="#&#x63A7;&#x5236;&#x7EC4;---control-groups---cgroups"><i class="fa fa-link" aria-hidden="true"></i></a>&#x63A7;&#x5236;&#x7EC4; - Control Groups - CGroups</h3>
<ul>
<li>Linux &#x5185;&#x6838;&#x7279;&#x6027;&#xFF0C;&#x4E3B;&#x8981;&#x7528;&#x6765;&#x5BF9;&#x5171;&#x4EAB;&#x8D44;&#x6E90;&#x8FDB;&#x884C;&#x9694;&#x79BB;&#x3001;&#x9650;&#x5236;&#x3001;&#x5BA1;&#x8BA1;&#x7B49;</li>
<li>&#x9650;&#x5236;&#x8D44;&#x6E90;&#x914D;&#x989D;&#xFF0C;&#x6BD4;&#x5982;&#x67D0;&#x4E2A;&#x5BB9;&#x5668;&#x53EA;&#x80FD;&#x4F7F;&#x7528; 100M &#x5185;&#x5B58;</li>
</ul>
<h3 id="&#x8054;&#x5408;&#x6587;&#x4EF6;&#x7CFB;&#x7EDF;---union-file-system---unionfs"><a name="&#x8054;&#x5408;&#x6587;&#x4EF6;&#x7CFB;&#x7EDF;---union-file-system---unionfs" class="plugin-anchor" href="#&#x8054;&#x5408;&#x6587;&#x4EF6;&#x7CFB;&#x7EDF;---union-file-system---unionfs"><i class="fa fa-link" aria-hidden="true"></i></a>&#x8054;&#x5408;&#x6587;&#x4EF6;&#x7CFB;&#x7EDF; - Union File System - UnionFS</h3>
<p><strong>[&#x53C2;&#x8003;]</strong></p>
<blockquote>
<ul>
<li><a href="https://coolshell.cn/articles/17061.html" target="_blank">DOCKER&#x57FA;&#x7840;&#x6280;&#x672F;&#xFF1A;AUFS - 201508</a></li>
</ul>
</blockquote>
<ul>
<li>UnionFS &#x662F;&#x4E00;&#x79CD;&#x5206;&#x5C42;&#x3001;&#x8F7B;&#x91CF;&#x7EA7;&#x5E76;&#x4E14;&#x9AD8;&#x6027;&#x80FD;&#x7684;&#x6587;&#x4EF6;&#x7CFB;&#x7EDF;&#xFF0C;&#x53EF;&#x4EE5;&#x628A;&#x4E0D;&#x540C;&#x7269;&#x7406;&#x4F4D;&#x7F6E;&#x7684;&#x76EE;&#x5F55;&#x5408;&#x5E76; mount &#x5230;&#x540C;&#x4E00;&#x4E2A;&#x76EE;&#x5F55;&#x4E2D;</li>
<li>UnionFS &#x7684;&#x4E00;&#x4E2A;&#x6700;&#x4E3B;&#x8981;&#x7684;&#x5E94;&#x7528;&#x662F;&#xFF0C;&#x628A;&#x4E00;&#x5F20; CD/DVD &#x548C;&#x4E00;&#x4E2A;&#x786C;&#x76D8;&#x76EE;&#x5F55;&#x7ED9;&#x8054;&#x5408; mount &#x5728;&#x4E00;&#x8D77;&#xFF0C;&#x7136;&#x540E;&#xFF0C;&#x4F60;&#x5C31;&#x53EF;&#x4EE5;&#x5BF9;&#x8FD9;&#x4E2A;&#x53EA;&#x8BFB;&#x7684; CD/DVD &#x4E0A;&#x7684;&#x6587;&#x4EF6;&#x8FDB;&#x884C;&#x4FEE;&#x6539;</li>
<li>Docker &#x7684;&#x955C;&#x50CF;&#x4E0E;&#x5BB9;&#x5668;&#x5C31;&#x662F;&#x5206;&#x5C42;&#x5B58;&#x50A8;&#xFF0C;&#x53EF;&#x7528;&#x7684;&#x5B58;&#x50A8;&#x5F15;&#x64CE;&#x6709; aufs&#x3001;overlay &#x7B49;&#xFF0C;&#x5728; <code>/var/lib/docker</code> &#x4E0B;&#x67E5;&#x770B;&#x82E5;&#x6709; aufs &#x76EE;&#x5F55;&#xFF0C;&#x5219;&#x4F7F;&#x7528;&#x7684;&#x662F; aufs &#x6587;&#x4EF6;&#x7CFB;&#x7EDF;&#xFF0C;&#x82E5;&#x662F; overlay &#x5219;&#x662F; overlay &#x6587;&#x4EF6;&#x7CFB;&#x7EDF;&#x5206;&#x5C42;&#x955C;&#x50CF;</li>
<li>&#x53EA;&#x8BFB;&#x5C42; - Read Layer - &#x955C;&#x50CF;&#x5C42;</li>
<li>&#x8BFB;&#x5199;&#x5C42; - Read Write Layer - &#x5BB9;&#x5668;&#x5C42;</li>
</ul>
<p><img src="images/UnionFs.jpg" alt=""></p>
<div align="center">
    <img src="images/rslayer.png"><br>&#x5BB9;&#x5668;&#x5C31;&#x662F;&#x7531;&#x5B58;&#x50A8; image &#x7684;&#x53EA;&#x8BFB;&#x5C42;&#x548C;&#x8BFB;&#x5199;&#x5C42;&#x6784;&#x6210;
</div>

<ul>
<li><p>&#x5BB9;&#x5668;&#x9700;&#x8981;&#x4FEE;&#x6539;&#x53EA;&#x8BFB;&#x5C42;&#x7684;&#x6587;&#x4EF6;&#xFF0C;&#x4F1A;&#x5148;&#x4ECE;&#x53EA;&#x8BFB;&#x5C42;&#x62F7;&#x8D1D;&#x4E00;&#x4EFD;&#x5230;&#x8BFB;&#x5199;&#x5C42;&#xFF0C;&#x518D;&#x4FEE;&#x6539;&#x5B83;&#xFF0C;&#x5B9E;&#x9645;&#x4E0A;&#x4FEE;&#x6539;&#x7684;&#x662F;&#x526F;&#x672C;&#x3002;&#x4F46;&#x4FEE;&#x6539;&#x540E;&#xFF0C;&#x53EA;&#x8BFB;&#x5C42;&#x5BF9;&#x5E94;&#x7684;&#x6587;&#x4EF6;&#x5C31;&#x201C;&#x9690;&#x85CF;&#x201D; &#x8D77;&#x6765;&#x4E86;</p>
</li>
<li><p>&#x5BB9;&#x5668;&#x7684;&#x53EA;&#x8BFB;&#x5C42; ( &#x955C;&#x50CF; ) &#x662F;&#x5171;&#x4EAB;&#x7684;&#xFF0C;&#x4E5F;&#x5C31;&#x662F;&#x5F53;&#x540C;&#x4E00;&#x955C;&#x50CF;&#x521B;&#x5EFA;&#x7684;&#x591A;&#x4E2A;&#x5BB9;&#x5668;&#x65F6;&#xFF0C;&#x5176;&#x5B9E;&#x53EA;&#x662F;&#x521B;&#x5EFA;&#x4E86;&#x591A;&#x4E2A;&#x8BFB;&#x5199;&#x5C42;&#xFF0C;&#x5220;&#x9664;&#x5BB9;&#x5668;&#x65F6;&#xFF0C;&#x5C31;&#x53EA;&#x662F;&#x5220;&#x9664;&#x5BB9;&#x5668;&#x7684;&#x8BFB;&#x5199;&#x5C42;&#x3002;&#x800C;&#x4E14;&#x8BFB;&#x5199;&#x5C42;&#x4E5F;&#x662F;&#x5728;&#x5BB9;&#x5668;&#x64CD;&#x4F5C;&#x4EA7;&#x751F;&#x6570;&#x636E;&#x65F6;&#x624D;&#x6D88;&#x8017;&#x8D44;&#x6E90;&#xFF0C;&#x6240;&#x4EE5;&#x521B;&#x5EFA;&#x5BB9;&#x5668;&#x7684;&#x6210;&#x672C;&#x5F88;&#x5C0F;&#xFF01;</p>
</li>
</ul>
<div align="center">
    <img src="images/docker-image.jpg"><br>&#x955C;&#x50CF;&#x4F5C;&#x4E3A;&#x53EA;&#x8BFB;&#x5C42;&#x662F;&#x5171;&#x4EAB;&#x7684;&#xFF0C;&#x800C;&#x5BB9;&#x5668;&#x5728;&#x955C;&#x50CF;&#x4E4B;&#x4E0A;&#x9644;&#x52A0;&#x4E86;&#x4E00;&#x5C42;&#x53EF;&#x5199;&#x5C42;
</div>

<ul>
<li>docker engine &#x662F;&#x5171;&#x4EAB;&#x5BBF;&#x4E3B;&#x673A;&#x64CD;&#x4F5C;&#x7CFB;&#x7EDF;&#x7684;&#xFF0C;&#x5BB9;&#x5668;&#x53C8;&#x662F;&#x5171;&#x4EAB; image &#x7684;&#xFF08;&#x53EA;&#x8BFB;&#x5C42;&#x5171;&#x4EAB;&#xFF09;&#xFF0C;&#x6240;&#x4EE5;&#x5BB9;&#x5668;&#x542F;&#x52A8;&#x6210;&#x672C;&#x5F88;&#x5C0F;&#xFF01;</li>
</ul>
<h2 id="dockerfile---&#x6784;&#x5EFA;&#x81EA;&#x5B9A;&#x4E49;&#x955C;&#x50CF;-top"><a name="dockerfile---&#x6784;&#x5EFA;&#x81EA;&#x5B9A;&#x4E49;&#x955C;&#x50CF;-top" class="plugin-anchor" href="#dockerfile---&#x6784;&#x5EFA;&#x81EA;&#x5B9A;&#x4E49;&#x955C;&#x50CF;-top"><i class="fa fa-link" aria-hidden="true"></i></a>Dockerfile - &#x6784;&#x5EFA;&#x81EA;&#x5B9A;&#x4E49;&#x955C;&#x50CF; <a href="#&#x76EE;&#x5F55;">[Top]</a></h2>
<ul>
<li>Dockerfile &#x4E00;&#x822C;&#x5206;&#x4E3A;&#xFF1A;&#x57FA;&#x7840;&#x955C;&#x50CF;&#x3001;&#x955C;&#x50CF;&#x5143;&#x4FE1;&#x606F;&#x3001;&#x955C;&#x50CF;&#x64CD;&#x4F5C;&#x6307;&#x4EE4;&#x548C;&#x5BB9;&#x5668;&#x542F;&#x52A8;&#x65F6;&#x6267;&#x884C;&#x6307;&#x4EE4;</li>
<li>Dockerfile &#x884C;&#x6CE8;&#x91CA;&#xFF1A;<code>#</code></li>
<li>Dockerfile &#x6362;&#x884C;&#x7B26;&#xFF1A;<code>\</code></li>
<li>Dockerfile &#x7684;&#x6307;&#x4EE4;&#x662F;&#x987A;&#x5E8F;&#x6267;&#x884C;&#x7684;</li>
</ul>
<table>
<thead>
<tr>
<th style="text-align:center">&#x6307;&#x4EE4;</th>
<th style="text-align:center">&#x8BF4;&#x660E;</th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align:center">FROM [image]:[tag]</td>
<td style="text-align:center">&#x57FA;&#x7840;&#x955C;&#x50CF;&#xFF0C;&#x7701;&#x7565; tag &#x5219;&#x662F; latest</td>
</tr>
<tr>
<td style="text-align:center">LABLE [k1]=[v1] [k2]=[v2]...</td>
<td style="text-align:center">&#x4E3A;&#x955C;&#x50CF;&#x6DFB;&#x52A0;&#x5143;&#x6570;&#x636E;,&#x591A;&#x7528;&#x4E8E;&#x58F0;&#x660E;&#x6784;&#x5EFA;&#x4FE1;&#x606F;&#xFF0C;&#x4F5C;&#x8005;&#x3001;&#x673A;&#x6784;&#x3001;&#x7EC4;&#x7EC7;&#x7B49;</td>
</tr>
<tr>
<td style="text-align:center">ENV [k] [v] or ENV [k]=[v]</td>
<td style="text-align:center">&#x73AF;&#x5883;&#x53D8;&#x91CF;&#xFF0C;${k} &#x5F15;&#x7528;&#x53D8;&#x91CF;</td>
</tr>
<tr>
<td style="text-align:center">ARG [name]=[value]</td>
<td style="text-align:center">&#x6784;&#x5EFA;&#x8FD0;&#x884C;&#x65F6;&#x7684;&#x53D8;&#x91CF;</td>
</tr>
<tr>
<td style="text-align:center">WORKDIR [path]</td>
<td style="text-align:center">&#x5DE5;&#x4F5C;&#x76EE;&#x5F55;&#xFF0C;&#x5176;&#x4ED6;&#x6307;&#x4EE4;&#x90FD;&#x4F1A;&#x5728;&#x8FD9;&#x4E2A;&#x76EE;&#x5F55;&#x6267;&#x884C;</td>
</tr>
<tr>
<td style="text-align:center">ADD [src] [dest]</td>
<td style="text-align:center"><strong>&#x672C;&#x5730;&#x6587;&#x4EF6;</strong>&#x6DFB;&#x52A0;&#x5230;&#x955C;&#x50CF;&#x4E2D;</td>
</tr>
<tr>
<td style="text-align:center">COPY [src] [dest]</td>
<td style="text-align:center">&#x540C;&#x4E0A;&#xFF0C;&#x4F46;&#x4E0D;&#x4F1A;&#x81EA;&#x52A8;&#x89E3;&#x538B;tar&#x548C;&#x8BBF;&#x95EE;&#x7F51;&#x7EDC;&#x8D44;&#x6E90;</td>
</tr>
<tr>
<td style="text-align:center">RUN [command]</td>
<td style="text-align:center">&#x6784;&#x5EFA;&#x955C;&#x50CF;&#x65F6;&#x6267;&#x884C;&#x7684;&#x547D;&#x4EE4;&#xFF0C;shell&#x6A21;&#x5F0F;</td>
</tr>
<tr>
<td style="text-align:center"><code>RUN [&quot;&lt;command&gt;&quot;, &quot;&lt;arg1&gt;&quot;, &quot;&lt;arg2&gt;&quot;]</code></td>
<td style="text-align:center">RUN exec&#x6267;&#x884C;&#x683C;&#x5F0F;&#xFF0C;&#x547D;&#x4EE4;&#x884C;&#x6A21;&#x5F0F;</td>
</tr>
<tr>
<td style="text-align:center"><code>CMD [&quot;&lt;command&gt;&quot;, &quot;&lt;arg1&gt;&quot;, &quot;&lt;arg2&gt;&quot;]</code></td>
<td style="text-align:center">&#x5BB9;&#x5668;&#x542F;&#x52A8;&#x65F6;&#x624D;&#x6267;&#x884C;&#x7684;&#x547D;&#x4EE4;</td>
</tr>
<tr>
<td style="text-align:center">ENTRYPOINT</td>
<td style="text-align:center">&#x53EF;&#x4EE5;&#x8986;&#x76D6; CMD &#xFF0C;&#x4E0B;&#x9762;&#x6709;&#x8BE6;&#x89E3;</td>
</tr>
<tr>
<td style="text-align:center">EXPOSE [port1] [port2]...</td>
<td style="text-align:center">&#x58F0;&#x660E;&#x955C;&#x50CF;&#x5185;&#x670D;&#x52A1;&#x76D1;&#x542C;&#x7AEF;&#x53E3;</td>
</tr>
<tr>
<td style="text-align:center"><code>VOLUME [&quot;&lt;src1&gt;&quot;,&quot;&lt;src2&gt;&quot;...]</code></td>
<td style="text-align:center">&#x521B;&#x5EFA;&#x955C;&#x50CF;&#x5185;&#x6570;&#x636E;&#x5377;&#x6302;&#x8F7D;&#x70B9;</td>
</tr>
<tr>
<td style="text-align:center">USER [UID]\</td>
<td style="text-align:center">[Username]\</td>
<td>[GID]</td>
<td>&#x6307;&#x5B9A;&#x8FD0;&#x884C;&#x6307;&#x4EE4;&#x7684;&#x7528;&#x6237;</td>
</tr>
<tr>
<td style="text-align:center">ONBUILD [INSTRUCTION]</td>
<td style="text-align:center">&#x5F53;&#x6240;&#x6784;&#x5EFA;&#x7684;&#x955C;&#x50CF;&#x88AB;&#x7528;&#x505A;&#x5176;&#x4ED6;&#x955C;&#x50CF;&#x7684;&#x57FA;&#x7840;&#x955C;&#x50CF;&#x65F6;&#x88AB;&#x89E6;&#x53D1;</td>
</tr>
</tbody>
</table>
<blockquote>
<ul>
<li>RUN &#x6307;&#x4EE4;&#x521B;&#x5EFA;&#x7684;&#x4E2D;&#x95F4;&#x955C;&#x50CF;&#x4F1A;&#x88AB;&#x7F13;&#x5B58;&#xFF0C;&#x5E76;&#x4F1A;&#x5728;&#x4E0B;&#x6B21;&#x6784;&#x5EFA;&#x4E2D;&#x4F7F;&#x7528;&#xFF0C;&#x5982;&#x679C;&#x4E0D;&#x60F3;&#x4F7F;&#x7528;&#x7F13;&#x5B58;&#x955C;&#x50CF;&#xFF0C;&#x53EF;&#x5728;&#x6784;&#x5EFA;&#x65F6;&#x6307;&#x5B9A; <code>--no-cache</code> &#x53C2;&#x6570;</li>
<li>EXPOSE &#x53EA;&#x662F;&#x58F0;&#x660E;&#x4F5C;&#x7528;&#xFF0C;&#x5E76;&#x4E0D;&#x4F1A;&#x81EA;&#x52A8;&#x5B8C;&#x6210;&#x7AEF;&#x53E3;&#x6620;&#x5C04;&#xFF0C;&#x542F;&#x52A8;&#x5BB9;&#x5668;&#x65F6;&#x5019;&#x8FD8;&#x662F;&#x9700;&#x8981;&#x6DFB;&#x52A0; <code>-P</code> &#x6216; <code>-p</code></li>
<li>VOLUME &#x548C; EXPOSE &#x7C7B;&#x4F3C;&#xFF0C;&#x4E0D;&#x4F1A;&#x81EA;&#x52A8;&#x6302;&#x8F7D;&#x6570;&#x636E;&#x5377;&#xFF0C;&#x9700;&#x8981;&#x542F;&#x52A8;&#x5BB9;&#x5668;&#x65F6;&#x4F7F;&#x7528; <code>-v</code> </li>
</ul>
</blockquote>
<h4 id="add-&#x548C;-copy"><a name="add-&#x548C;-copy" class="plugin-anchor" href="#add-&#x548C;-copy"><i class="fa fa-link" aria-hidden="true"></i></a><strong><code>ADD</code></strong> &#x548C; <strong><code>COPY</code></strong></h4>
<h4 id="cmd-&#x3001;-entrypoint--&#x548C;-docker-run--command"><a name="cmd-&#x3001;-entrypoint--&#x548C;-docker-run--command" class="plugin-anchor" href="#cmd-&#x3001;-entrypoint--&#x548C;-docker-run--command"><i class="fa fa-link" aria-hidden="true"></i></a><strong><code>CMD</code> &#x3001; <code>ENTRYPOINT</code></strong>  &#x548C; <strong><code>docker run ... [command]</code></strong></h4>
<blockquote>
<p><strong><code>docker run ... [command]</code></strong> &#x662F;&#x6307;&#x6267;&#x884C; <code>docker run</code> &#x65F6;&#x8DDF;&#x5728;&#x6700;&#x540E;&#x9762;&#x7684;&#x5BB9;&#x5668;&#x542F;&#x52A8;&#x547D;&#x4EE4;</p>
</blockquote>
<ul>
<li><strong><code>CMD</code></strong> &#x3001;<strong><code>ENTRYPOINT</code></strong>  &#x548C; <strong><code>docker run ... [command]</code></strong> &#x90FD;&#x53EF;&#x4EE5;&#x8BBE;&#x5B9A;&#x5BB9;&#x5668;&#x542F;&#x52A8;&#x65F6;&#x6267;&#x884C;&#x7684;&#x547D;&#x4EE4;</li>
<li><p><strong><code>ENTRYPOINT</code></strong>  &gt;  <strong><code>docker run ... [command]</code></strong> &gt; <strong><code>CMD</code> </strong></p>
<ul>
<li>&#x5F53;&#x5B58;&#x5728; <strong><code>ENTRYPOINT</code></strong> &#x65F6;&#xFF0C;<strong><code>ENTRYPOINT</code></strong>  &#x4F1A;&#x5C06;  <strong><code>docker run ... [command]</code></strong> &#x548C; <strong><code>CMD</code> </strong> &#x4E2D;&#x6307;&#x5B9A;&#x7684;&#x53C2;&#x6570;&#x4F20;&#x5165;</li>
<li>&#x5F53;&#x4E0D;&#x5B58;&#x5728; <strong><code>ENTRYPOINT</code></strong> &#xFF0C;&#x4F46;&#x5B58;&#x5728; <strong><code>docker run ... [command]</code></strong> &#xFF0C;&#x4F1A;&#x8986;&#x76D6; <strong><code>CMD</code> </strong></li>
<li>&#x5F53;&#x65E2;&#x4E0D;&#x5B58;&#x5728; <strong><code>ENTRYPOINT</code></strong> &#x4E5F;&#x4E0D;&#x5B58;&#x5728; <strong><code>docker run ... [command]</code></strong>&#xFF0C;&#x5219;&#x9ED8;&#x8BA4;&#x6267;&#x884C; <strong><code>CMD</code> </strong></li>
</ul>
</li>
<li><p><strong>&#x901A;&#x5E38;&#x5728; Dockerfile &#x4E2D;&#x4F7F;&#x7528; <code>ENTRYPOINT</code>&#x6307;&#x5B9A;&#x5BB9;&#x5668;&#x542F;&#x52A8;&#x65F6;&#x7684;&#x547D;&#x4EE4;&#x540C;&#x65F6;&#x7528; <code>CMD</code> &#x6307;&#x5B9A;&#x9ED8;&#x8BA4;&#x547D;&#x4EE4;&#x53C2;&#x6570;&#xFF0C;&#x8FD9;&#x6837;&#x5728; <code>docker run</code> &#x65F6;&#x65E2;&#x53EF;&#x4EE5;&#x6DFB;&#x52A0;&#x53C2;&#x6570;&#xFF0C;&#x4E5F;&#x53EF;&#x4EE5;&#x4E0D;&#x6DFB;&#x52A0;&#x4F7F;&#x7528; <code>CMD</code> &#x7684;&#x9ED8;&#x8BA4;&#x53C2;&#x6570;</strong></p>
</li>
<li>&#x4E00;&#x4E2A; Dockerfile &#x6700;&#x591A;&#x53EA;&#x80FD;&#x6709;&#x4E00;&#x4E2A; <strong><code>CMD</code> &#x548C; <code>ENTRYPOINT</code></strong>&#xFF0C;&#x5982;&#x679C;&#x6709;&#x591A;&#x4E2A;&#xFF0C;&#x53EA;&#x6709;&#x6700;&#x540E;&#x4E00;&#x4E2A;&#x751F;&#x6548;</li>
</ul>
<p><strong><code>CMD</code></strong> &#x7684;&#x4E09;&#x79CD;&#x7528;&#x6CD5;&#xFF1A;</p>
<ul>
<li><code>CMD [&quot;executable&quot;,&quot;param1&quot;,&quot;param2&quot;]</code>  (exec form, this is the preferred form&#xFF0C;&#x547D;&#x4EE4;&#x884C;&#x6A21;&#x5F0F; )</li>
<li><code>CMD [&quot;param1&quot;,&quot;param2&quot;]</code>  (as default parameters to ENTRYPOINT)</li>
<li><code>CMD command param1 param2</code>  (shell form&#xFF0C;shell &#x6A21;&#x5F0F; )</li>
</ul>
<p><strong><code>ENTRYPOINT</code></strong> &#x7684;&#x4E24;&#x79CD;&#x7528;&#x6CD5;&#xFF1A;</p>
<ul>
<li><p><code>ENTRYPOINT [&quot;executable&quot;, &quot;param1&quot;, &quot;param2&quot;]</code> (exec form, preferred)</p>
</li>
<li><p><code>ENTRYPOINT command param1 param2</code> (shell form)</p>
</li>
</ul>
<h2 id="docker-compose---&#x7F16;&#x6392;&#x64CD;&#x63A7;&#x5BB9;&#x5668;-top"><a name="docker-compose---&#x7F16;&#x6392;&#x64CD;&#x63A7;&#x5BB9;&#x5668;-top" class="plugin-anchor" href="#docker-compose---&#x7F16;&#x6392;&#x64CD;&#x63A7;&#x5BB9;&#x5668;-top"><i class="fa fa-link" aria-hidden="true"></i></a>Docker Compose - &#x7F16;&#x6392;&#x64CD;&#x63A7;&#x5BB9;&#x5668; <a href="#&#x76EE;&#x5F55;">[Top]</a></h2>
<p><strong><code>&#x5B89;&#x88C5;</code></strong></p>
<pre><code class="lang-bash"><span class="hljs-comment"># Linux</span>
$ sudo curl -L https://github.com/docker/compose/releases/download/1.18.0/docker-compose-`uname <span class="hljs-_">-s</span>`-`uname -m` -o /usr/<span class="hljs-built_in">local</span>/bin/docker-compose
$ sudo chmod +x /usr/<span class="hljs-built_in">local</span>/bin/docker-compose
$ docker-compose --version
</code></pre>
<p><strong><code>&#x5E38;&#x7528;&#x547D;&#x4EE4;</code></strong></p>
<ul>
<li><p><strong><code>docker-compose [-f &lt;arg&gt;...] [options] [COMMAND] [ARGS...]</code></strong></p>
</li>
<li><p><strong><code>docker-compose</code></strong> </p>
</li>
<li><strong><code>docker-compose &lt;command&gt; -h</code></strong> </li>
</ul>
<p>1&#x3001;&#x7F16;&#x5199;&#x9700;&#x8981;&#x91CD;&#x590D;&#x751F;&#x6210;&#x5E94;&#x7528; ( app ) &#x7684; <strong>Dockerfile</strong></p>
<blockquote>
<p>&#x4E00;&#x822C;&#x4E00;&#x4E2A;&#x5BB9;&#x5668;&#x91CC;&#x4E00;&#x4E2A;&#x5E94;&#x7528;&#xFF0C;&#x6BD4;&#x5982; mysql &#x6570;&#x636E;&#x5E93;</p>
</blockquote>
<p>2&#x3001;&#x5B9A;&#x4E49;&#x7528;&#x4E8E;&#x7F16;&#x6392;&#x591A;&#x4E2A;&#x5E94;&#x7528;&#x4EE5;&#x7EC4;&#x6210;&#x670D;&#x52A1; ( service ) &#x7684; <strong>docker-compose.yml</strong> </p>
<blockquote>
<p>&#x4E00;&#x4E2A;&#x670D;&#x52A1;&#x4E00;&#x822C;&#x7531;&#x591A;&#x4E2A;&#x5E94;&#x7528;&#x7EC4;&#x6210;&#xFF0C;&#x6BD4;&#x5982; web service &#x53EF;&#x4EE5;&#x7531; nignx &#x8D1F;&#x8F7D;&#x5747;&#x8861;&#x5668;&#x3001;tomcat web &#x670D;&#x52A1;&#x5668;&#x3001;mysql &#x6570;&#x636E;&#x5E93;&#x670D;&#x52A1;&#x5668;&#x7B49;&#x7EC4;&#x6210;</p>
</blockquote>
<p>3&#x3001;<code>docker-compose up</code></p>
<ul>
<li>docker-compose &#x672C;&#x8EAB;&#x6CA1;&#x6709;&#x6784;&#x5EFA;&#x955C;&#x50CF;&#x7684;&#x529F;&#x80FD;&#xFF0C;&#x5982;&#x679C;&#x5BB9;&#x5668;&#x955C;&#x50CF;&#x662F;&#x76F4;&#x63A5;&#x4ECE; docker registry &#x62C9;&#x53D6;&#xFF0C;&#x5219;&#x4E0D;&#x9700;&#x8981; Dockerfile &#xFF1B;&#x4F46;&#x5982;&#x679C;&#x9700;&#x8981;&#x57FA;&#x4E8E;&#x57FA;&#x7840;&#x955C;&#x50CF;&#x6784;&#x5EFA;&#x65B0;&#x7684;&#x955C;&#x50CF;&#xFF0C;&#x5219;&#x9700;&#x8981;&#x4F7F;&#x7528; Dockerfile</li>
</ul>
<h2 id="docker-machine---&#x521B;&#x5EFA;&#x7BA1;&#x7406;&#x5BB9;&#x5668;&#x5BBF;&#x4E3B;&#x673A;-top"><a name="docker-machine---&#x521B;&#x5EFA;&#x7BA1;&#x7406;&#x5BB9;&#x5668;&#x5BBF;&#x4E3B;&#x673A;-top" class="plugin-anchor" href="#docker-machine---&#x521B;&#x5EFA;&#x7BA1;&#x7406;&#x5BB9;&#x5668;&#x5BBF;&#x4E3B;&#x673A;-top"><i class="fa fa-link" aria-hidden="true"></i></a>Docker Machine - &#x521B;&#x5EFA;&#x7BA1;&#x7406;&#x5BB9;&#x5668;&#x5BBF;&#x4E3B;&#x673A; <a href="#&#x76EE;&#x5F55;">[Top]</a></h2>
<p><strong><code>&#x7B80;&#x4ECB;</code></strong></p>
<ul>
<li>docker-machine &#x53EF;&#x4EE5;&#x5728;&#x672C;&#x5730;&#x3001;&#x4E91;&#x7AEF;&#x670D;&#x52A1;&#x5668;&#x5FEB;&#x901F;&#x521B;&#x5EFA;&#x5305;&#x542B; Docker Engine &#x7684;&#x865A;&#x62DF;&#x673A;&#xFF0C;&#x4F46;&#x4E0D;&#x80FD;&#x5728;&#x865A;&#x62DF;&#x673A;&#x4E2D;&#x521B;&#x5EFA;&#xFF08;&#x865A;&#x62DF;&#x673A;&#x4E2D;&#x4E0D;&#x80FD;&#x518D;&#x521B;&#x5EFA;&#x865A;&#x62DF;&#x673A;&#xFF09;</li>
<li>docker-machine &#x53EF;&#x4EE5;&#x542F;&#x52A8;&#x3001;&#x5BA1;&#x67E5;&#x3001;&#x505C;&#x6B62;&#x548C;&#x91CD;&#x65B0;&#x542F;&#x52A8;&#x6258;&#x7BA1;&#x7684;&#x5BBF;&#x4E3B;&#x673A;&#x3001;&#x5347;&#x7EA7; Docker &#x5BA2;&#x6237;&#x7AEF;&#x548C;&#x5B88;&#x62A4;&#x7A0B;&#x5E8F;&#x3001;&#x5E76;&#x914D;&#x7F6E; Docker &#x5BA2;&#x6237;&#x7AEF;&#x4E0E;&#x4F60;&#x7684;&#x5BBF;&#x4E3B;&#x673A;&#x901A;&#x4FE1;</li>
<li>&#x4E5F;&#x53EF;&#x4EE5;&#x4F7F;&#x7528; Ansible &#x7B49; DevOps &#x5DE5;&#x5177;&#x5B9E;&#x73B0;&#x5BF9; Docker &#x73AF;&#x5883;&#x7684;&#x81EA;&#x52A8;&#x5316;&#x7BA1;&#x7406;</li>
<li>&#x672C;&#x8D28;&#x4E0A; docker-machine &#x662F;&#x4E00;&#x4E2A;&#x865A;&#x62DF;&#x673A;&#x7BA1;&#x7406;&#x5DE5;&#x5177;&#xFF0C;&#x5B83;&#x901A;&#x8FC7;&#x521B;&#x5EFA;&#x4E00;&#x4E2A;&#x5B89;&#x88C5;&#x597D;docker &#x7684;&#x865A;&#x62DF;&#x673A;&#xFF08;&#x652F;&#x6301; VirtualBox&#xFF0C;DigitalOcean&#xFF0C;EC2 &#x7B49;&#xFF09;&#xFF0C;&#x5E76;&#x8BBE;&#x7F6E;&#x5BF9;&#x5E94;&#x7684;&#x73AF;&#x5883;&#x53D8;&#x91CF;&#xFF08; DOCKER_HOST&#xFF0C;DOCKER_MACHINE_NAME &#x7B49;&#xFF09;&#xFF0C;&#x4F7F;&#x5F97;&#x672C;&#x5730;&#x7684; docker &#x5DE5;&#x5177;&#x83B7;&#x5F97;&#x900F;&#x660E;&#x8FDC;&#x7A0B;&#x64CD;&#x4F5C;&#x865A;&#x62DF;&#x673A;&#x7684;&#x80FD;&#x529B;&#x3002;&#x4ECE;&#x800C;&#x4F7F;&#x672C;&#x8EAB;&#x4E0D;&#x652F;&#x6301; docker &#x7684; Windows &#x548C; Mac &#x7CFB;&#x7EDF;&#x80FD;&#x591F;&#x76F4;&#x63A5;&#x4F7F;&#x7528; docker &#x547D;&#x4EE4;</li>
</ul>
<p><strong><code>&#x5E38;&#x7528;&#x547D;&#x4EE4;</code></strong></p>
<ul>
<li><strong><code>docker-machine</code></strong>  - &#x67E5;&#x770B;&#x5E38;&#x7528;&#x547D;&#x4EE4;</li>
<li><strong><code>docker-machine &lt;command&gt; --help</code></strong> - &#x67E5;&#x770B;&#x5E38;&#x7528;&#x547D;&#x4EE4;&#x5E2E;&#x52A9;</li>
</ul>
<p><strong><code>&#x5B89;&#x88C5;</code></strong></p>
<blockquote>
<p><a href="https://github.com/docker/machine/releases/" target="_blank">https://github.com/docker/machine/releases/</a></p>
</blockquote>
<pre><code class="lang-bash">$ curl -L https://github.com/docker/machine/releases/download/v0.16.2/docker-machine-`uname <span class="hljs-_">-s</span>`-`uname -m` &gt;/usr/<span class="hljs-built_in">local</span>/bin/docker-machine
$ chmod +x /usr/<span class="hljs-built_in">local</span>/bin/docker-machine
</code></pre>
<p><strong><code>&#x5E38;&#x7528;&#x547D;&#x4EE4;</code></strong></p>
<ul>
<li><strong><code>docker-machine [OPTIONS] COMMAND [arg...]</code></strong></li>
<li><strong><code>docker-machine</code> - &#x67E5;&#x770B;&#x5E38;&#x7528;&#x547D;&#x4EE4;</strong></li>
<li><strong><code>docker-machine COMMAND -h</code> - &#x67E5;&#x770B;&#x5177;&#x4F53;&#x67D0;&#x4E00;&#x4E2A;&#x547D;&#x4EE4;&#x529F;&#x80FD;</strong> </li>
</ul>
<p><strong><code>&#x89E3;&#x51B3;&#x9996;&#x6B21;&#x8FD0;&#x884C;&#x6162;</code></strong></p>
<blockquote>
<p>&#x7B2C;&#x4E00;&#x6B21;&#x8FD0;&#x884C; <code>docker-machine create</code> &#x4F1A;&#x53BB; <a href="https://github.com/boot2docker/boot2docker/releases/" target="_blank">https://github.com/boot2docker/boot2docker/releases/</a> &#x4E0B;&#x8F7D;&#x4E00;&#x4E2A;&#x6700;&#x65B0;&#x7684; 57M &#x7684; boot2docker.iso &#x955C;&#x50CF;&#xFF0C;&#x56FD;&#x5185;&#x4E0B;&#x8F7D;&#x4F1A;&#x5F88;&#x6162;</p>
</blockquote>
<pre><code class="lang-bash"><span class="hljs-comment"># 1. &#x4E0B;&#x8F7D; boot2docker.iso  &#x6700;&#x65B0;&#x7248;&#x672C;&#x5230;&#x672C;&#x5730; - https://github.com/boot2docker/boot2docker/releases/</span>
<span class="hljs-comment"># 2. &#x79FB;&#x52A8; boot2docker.iso  &#x5230; ~/.docker/machine/cache/</span>
$ mv boot2docker.iso ~/.docker/machine/cache/
<span class="hljs-comment"># 3. &#x6307;&#x5B9A;&#x672C;&#x5730;&#x7684; boot2docker.iso &#x8DEF;&#x5F84;&#xFF0C;&#x5E76;&#x8DF3;&#x8FC7;&#x7F51;&#x7EDC;&#x68C0;&#x67E5;&#x521B;&#x5EFA;&#x65B0;&#x7684; docker machine &#xFF0C;&#x547D;&#x540D;&#x4E3A; default</span>
$ docker-machine create default <span class="hljs-_">-d</span> virutalbox --virtualbox-boot2docker-url=/home/`whoami`/.docker/machine/cache/boot2docker.iso 
<span class="hljs-comment"># --virtualbox-boot2docker-url  &#x624B;&#x52A8;&#x6307;&#x5B9A;&#x4E86;boot2docker.iso &#x4F4D;&#x7F6E;</span>
</code></pre>
<p><strong><code>&#x914D;&#x7F6E;&#x5F53;&#x524D;shell docker server</code></strong></p>
<pre><code class="lang-bash">$ docker-machine env default
<span class="hljs-built_in">export</span> DOCKER_TLS_VERIFY=<span class="hljs-string">&quot;1&quot;</span>
<span class="hljs-built_in">export</span> DOCKER_HOST=<span class="hljs-string">&quot;tcp://192.168.99.100:2376&quot;</span>
<span class="hljs-built_in">export</span> DOCKER_CERT_PATH=<span class="hljs-string">&quot;/home/xcq/.docker/machine/machines/default&quot;</span>
<span class="hljs-built_in">export</span> DOCKER_MACHINE_NAME=<span class="hljs-string">&quot;default&quot;</span>
<span class="hljs-comment"># Run this command to configure your shell: </span>
<span class="hljs-comment"># eval $(docker-machine env default)</span>
$ <span class="hljs-built_in">eval</span> $(docker-machine env default)
<span class="hljs-comment"># &#x6267;&#x884C;&#x4E0A;&#x9762;&#x547D;&#x4EE4;&#x5373;&#x53EF;&#x5207;&#x6362; docker server &#x4E3A; default &#x4E3B;&#x673A;&#x4E2D; docker server</span>
</code></pre>
<h2 id="docker-swarm-top"><a name="docker-swarm-top" class="plugin-anchor" href="#docker-swarm-top"><i class="fa fa-link" aria-hidden="true"></i></a>Docker Swarm <a href="#&#x76EE;&#x5F55;">[Top]</a></h2>
<footer class="page-footer-ex"> <span class="page-footer-ex-copyright"> <a href="https://github.com/Xiechengqi" target="_blank">Xiechengqi</a> </span> &#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0; <span class="page-footer-ex-footer-update"> <strong>&#x6700;&#x65B0;&#x4FEE;&#x8BA2;&#x65F6;&#x95F4;&#xFF1A;</strong> 2020-01-07 13:37:44 </span> </footer>
<script>console.log("plugin-popup....");document.onclick = function(e){ e.target.tagName === "IMG" && window.open(e.target.src,e.target.src)}</script><style>img{cursor:pointer}</style>
                                
                                </section>
                            
    </div>
    <div class="search-results">
        <div class="has-results">
            
            <h1 class="search-results-title"><span class='search-results-count'></span> results matching "<span class='search-query'></span>"</h1>
            <ul class="search-results-list"></ul>
            
        </div>
        <div class="no-results">
            
            <h1 class="search-results-title">No results matching "<span class='search-query'></span>"</h1>
            
        </div>
    </div>
</div>

                        </div>
                    </div>
                
            </div>

            
                
                <a href="./" class="navigation navigation-prev " aria-label="Previous page: Docker">
                    <i class="fa fa-angle-left"></i>
                </a>
                
                
                <a href="Docker小知识.html" class="navigation navigation-next " aria-label="Next page: Docker 小知识">
                    <i class="fa fa-angle-right"></i>
                </a>
                
            
        
    </div>

    <script>
        var gitbook = gitbook || [];
        gitbook.push(function() {
            gitbook.page.hasChanged({"page":{"title":"Docker 基础学习笔记","level":"1.9.1","depth":2,"next":{"title":"Docker 小知识","level":"1.9.2","depth":2,"path":"Docker/Docker小知识.md","ref":"Docker/Docker小知识.md","articles":[]},"previous":{"title":"Docker","level":"1.9","depth":1,"path":"Docker/README.md","ref":"Docker/README.md","articles":[{"title":"Docker 基础学习笔记","level":"1.9.1","depth":2,"path":"Docker/Docker基础学习.md","ref":"Docker/Docker基础学习.md","articles":[]},{"title":"Docker 小知识","level":"1.9.2","depth":2,"path":"Docker/Docker小知识.md","ref":"Docker/Docker小知识.md","articles":[]},{"title":"Docker 学习中的单词","level":"1.9.3","depth":2,"path":"Docker/Docker必知单词.md","ref":"Docker/Docker必知单词.md","articles":[]}]},"dir":"ltr"},"config":{"plugins":["-lunr","-search","-livereload","-sharing","expandable-chapters","popup","pageview-count","code","back-to-top-button","hide-element","github-buttons","github","splitter","search-pro","anchors","page-footer-ex","advanced-emoji","sharing-plus"],"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"pluginsConfig":{"github":{"url":"https://github.com/Xiechengqi/LearningNotes"},"page-footer-ex":{"copyright":"[Xiechengqi](https://github.com/Xiechengqi)","markdown":true,"update_format":"YYYY-MM-DD HH:mm:ss","update_label":"<strong>最新修订时间：</strong>"},"splitter":{},"search-pro":{},"sharing-plus":{"qq":false,"all":["facebook","google","twitter","instapaper","linkedin","pocket","stumbleupon"],"douban":false,"facebook":true,"weibo":false,"instapaper":false,"whatsapp":false,"hatenaBookmark":false,"twitter":true,"messenger":false,"line":false,"vk":false,"pocket":true,"google":false,"viber":false,"stumbleupon":false,"qzone":false,"linkedin":false},"popup":{},"code":{"copyButtons":true},"hide-element":{"elements":[".gitbook-link"]},"fontsettings":{"theme":"white","family":"sans","size":2},"highlight":{},"back-to-top-button":{},"pageview-count":{},"github-buttons":{"buttons":[{"user":"Xiechengqi","repo":"LearningNotes","type":"star","size":"small","count":true}]},"advanced-emoji":{"embedEmojis":false},"sharing":{"qq":false,"douban":false,"facebook":false,"weibo":false,"instapaper":false,"whatsapp":false,"hatenaBookmark":false,"twitter":false,"messenger":false,"line":false,"vk":false,"pocket":false,"google":false,"viber":false,"stumbleupon":false,"qzone":false,"linkedin":false},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false},"anchors":{},"expandable-chapters":{}},"theme":"default","pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"variables":{},"title":"日常学习笔记","language":"zh-hans","gitbook":"*","description":"日常学习笔记"},"file":{"path":"Docker/Docker基础学习.md","mtime":"2020-01-07T05:37:44.570Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2020-03-28T02:57:41.582Z"},"basePath":"..","book":{"language":""}});
        });
    </script>
</div>

        
    <script src="../gitbook/gitbook.js"></script>
    <script src="../gitbook/theme.js"></script>
    
        
        <script src="../gitbook/gitbook-plugin-expandable-chapters/expandable-chapters.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-pageview-count/plugin.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-code/plugin.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-back-to-top-button/plugin.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-hide-element/plugin.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-github-buttons/plugin.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-github/plugin.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-splitter/splitter.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-search-pro/jquery.mark.min.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-search-pro/search.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-sharing-plus/buttons.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-fontsettings/fontsettings.js"></script>
        
    

    </body>
</html>

